import React, { Component } from 'react';
import './index.css'
import {withRouter } from 'react-router-dom';
class Top extends Component {

  render() {
    return (
      <div className='top_box'>
        <i className="iconfont iconjiankuohao" onClick={()=>{
           this.props.history.go(-1)
        }}></i>
            <span>{this.props.name}</span>
            <i className="iconfont iconshouye"  onClick={()=>{
           this.props.history.push('/home')
        }}></i>
      </div>
    );
  }
}
export default withRouter(Top)